package com.neu.eurekaprovidestu.controller;

import com.neu.dto.StuDto;
import com.neu.eurekaprovidestu.service.StuService;
import com.neu.util.CommonResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stu")
public class StuController {
    @Resource
    private StuService stuService;

    @RequestMapping("/reg")
    public CommonResult reg(@RequestBody StuDto dto){
        return  stuService.doReg(dto);
    }
}
